<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>提问</title>
    <link rel="stylesheet" type="text/css" href="__CSS__api.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__aui.css" />
    <style>
        .aui-bar-nav .aui-iconfont {
            position: relative;
            font-family: "aui_iconfont" !important;
            font-size: 0.75rem;
            color: #E73C5C;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            height: 2.4rem;
        }

        .aui-bar-nav {
            background-color: #fff;
        }

        .aui-icon-tu {
            height: 2.4rem;
            width: 49px;
            background: url('__IMG__cha.png') no-repeat 0.5rem center;
            background-size: 22px 22px;
        }

        .aui-bar-nav .aui-pull-right {
            padding-right: 0.75rem;
        }

        .aui-bar-nav .aui-title {
            font-size: 0.9rem;
            color: #333333;
            font-weight: 500;
        }
        body {
            background: #F5F5F5;

        }
        .zhuti{
            padding-left:0.75rem;
            padding-right:0.75rem;
            background:#FFFFFF;
            padding-bottom:1.25rem;
        }
        .advice{
            background:#FFFFFF;
            color:#999999;
            height:3.6rem;
            padding:0 0.15rem;
            font-size:0.7rem;
            overflow-y: auto;
            word-break: break-all;
            word-wrap:break-word;
            background-color:#FFFFFF;
        }
        textarea::-webkit-input-placeholder {
            color: #999999;
        }
        .shuzi{
            font-size:0.6rem;
            color:#999999;
            text-align: right;
            padding-right:0.475rem;
        }
        .photoAll{
            width:100%;
            margin-top:1.05rem;
        }

        .photo{
            width:30%;
            box-sizing: border-box;
            display:inline-block;
            position:relative;
        }
        .photo:nth-child(3n+2){
            margin-right:12.5px;
            margin-left: 12.5px;
        }
        .photo img{
            width:100%;
            height:100%;
        }
        .cha{
            position: absolute;
            top: -0.475rem;
            right: -0.475rem;
            width: 1rem;
            height: 1rem;
        }
        .top{
            height:2.6rem;
            line-height:2.6rem;
            margin-top:0.525rem;
        }
        .title{
            color:#333333;
            font-size:15px;
            padding-right:6.5px;
        }
        input[type="text"]{
            height: 2.5rem;
            line-height:auto;
            background-color: #fff;
            color:#999999;
            font-size:14px;
        }
        input::-webkit-input-placeholder {
            color:#999999;
            font-size:14px;
        }
    </style>
</head>

<body>
<header class="aui-bar aui-bar-nav underLine" style="padding-top:25px;" id="header">
    <a class="aui-pull-left" tapmode="active" onclick="history.go(-1)"> <span class="aui-iconfont aui-icon-tu"> </span> </a>
    <div class="aui-title"></div>
    <a class="aui-pull-right">
        <span class="aui-iconfont" tapmode="active" onclick="right()">发布</span>
    </a>
</header>
<div class="zhuti">

    <div class="top flex-wrap">
        <div class="title">标题</div>
        <div class="flex-con">
            <input type="text" placeholder="请输入问题" />
        </div>
    </div>
    <div>
        <textarea placeholder="请添加问题描述，获得准确回答..."  class="advice" id="text1" maxlength="200"></textarea>
        <div class="shuzi"><span id="num1">0</span>/<span id="num2">200</span></div>

    </div>
    <div class="photoAll">
        <div class="photo"  id="addimgggg">
            <img  src="__IMG__add.png" />
            <div class="cha"><img  src="__IMG__cha@3x.png" /></div>
        </div>
        <div class="photo">
            <img  src="__IMG__add.png" />
        </div>
        <div class="photo">
            <img  src="__IMG__add.png" />
        </div>
    </div>

</div>
</body>
<script type="text/javascript" src="__JS__api.js"></script>
<script type="text/javascript" src="__JS__tt.js"></script>
<script type="text/javascript" src="__JS__aui-actionsheet.js"></script>
<script type="text/javascript" src="__JS__doT.min.js"></script>
<script type="text/javascript" src="__JS__aui-lazyload.js"></script>
<script type="text/javascript">
    apiready = function() {
        size();//图片宽高

        $api.addEvt($api.byId('text1'),'input',function(){

            var searchValue = $api.val($api.byId("text1")) || "";

            if(searchValue.length>=200){
                $api.byId('num1').innerHTML=200;
                $api.byId('num2').innerHTML=0;

                $api.val($api.byId("text1"),searchValue.slice(0,200));

            }else{
                $api.byId('num1').innerHTML=searchValue.length;
                $api.byId('num2').innerHTML=200-searchValue.length;
            }

        });
    }
    //图片宽高
    function size(){
        var pic=$api.domAll(".photo");
        for(var i=0;i<pic.length;i++){
            $api.css(pic[i],'width:'+(api.frameWidth-68)/3+'px'+';height:'+(api.frameWidth-68)/3+'px');
        }
    }
</script>

</html>
